<script setup>
import { useRouter } from 'vue-router';

const router = useRouter();

const goBack = () => {
  router.go(-1);
};

const goHome = () => {
  router.push('/dashboard');
};
</script>

<template>
  <div class="not-found-container">
    <div class="content">
      <h1>404</h1>
      <div class="desc">抱歉，您访问的页面不存在</div>
      <div class="actions">
        <el-button @click="goBack">返回上一页</el-button>
        <el-button type="primary" @click="goHome">回到首页</el-button>
      </div>
    </div>
  </div>
</template>

<style scoped>
.not-found-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  background-color: #f0f2f5;
}
.content {
  text-align: center;
}
h1 {
  font-size: 120px;
  margin: 0;
  color: #409EFF;
  text-shadow: 4px 4px 0 #e0e0e0;
}
.desc {
  font-size: 20px;
  color: #606266;
  margin: 20px 0 30px;
}
.actions {
  display: flex;
  justify-content: center;
  gap: 15px;
}
</style> 
